AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = include
AM_CFLAGS = @TARGET_CFLAGS@

lib_LTLIBRARIES = libmm.la libtest_dll.la

noinst_PROGRAMS =   \
    early_alloc_test    \
    pages_test  \
    memory_init_test    \
    page_alloc_test \
    compound_pages  \
    kmalloc_test

libmm_la_SOURCES = @top_srcdir@/src/early_alloc.c   \
                    @top_srcdir@/src/page_alloc.c   \
                    @top_srcdir@/src/pages.c    \
                    @top_srcdir@/src/physical_area.c    \
                    @top_srcdir@/src/memory.c   \
                    @top_srcdir@/src/slab.c
libmm_la_CFLAGS = $(AM_CFLAGS)

libtest_dll_la_SOURCES = @top_srcdir@/test_dll/test_dll.c
libtest_dll_la_LIBADD = libmm.la
libtest_dll_la_CFLAGS = $(AM_CFLAGS)

early_alloc_test_SOURCES = @top_srcdir@/test/early_alloc_test.c
early_alloc_test_LDADD = libmm.la
early_alloc_test_CFLAGS = $(AM_CFLAGS)

pages_test_SOURCES = @top_srcdir@/test/pages_test.c
pages_test_LDADD = libmm.la
pages_test_CFLAGS = $(AM_CFLAGS)

memory_init_test_SOURCES = @top_srcdir@/test/memory_init_test.c
memory_init_test_LDADD = libmm.la
memory_init_test_CFLAGS = $(AM_CFLAGS)

page_alloc_test_SOURCES = @top_srcdir@/test/page_alloc_test.c
page_alloc_test_LDADD = libmm.la
page_alloc_test_CFLAGS = $(AM_CFLAGS)

compound_pages_SOURCES = @top_srcdir@/test/compound_pages.c
compound_pages_LDADD = libmm.la
compound_pages_CFLAGS = $(AM_CFLAGS)

kmalloc_test_SOURCES = @top_srcdir@/test/kmalloc_test.c
kmalloc_test_LDADD = libmm.la
kmalloc_test_CFLAGS = $(AM_CFLAGS)

